package com.gxa.logistics.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.util.Date;

public class InsuranceUpdateDTO {
    @ApiModelProperty(name = "lpnum", notes = "车牌号码", dataType = "String", required = true)
    @NotNull(message = "车牌号码不能为空")
    private String lpnum;

    public String getLpnum() {
        return lpnum;
    }

    public void setLpnum(String lpnum) {
        this.lpnum = lpnum;
    }

    public String getIsr_company() {
        return isr_company;
    }

    public void setIsr_company(String isr_company) {
        this.isr_company = isr_company;
    }

    public Integer getCipnum() {
        return cipnum;
    }

    public void setCipnum(Integer cipnum) {
        this.cipnum = cipnum;
    }

    public Integer getClipnum() {
        return clipnum;
    }

    public void setClipnum(Integer clipnum) {
        this.clipnum = clipnum;
    }

    public Date getCisdate() {
        return cisdate;
    }

    public void setCisdate(Date cisdate) {
        this.cisdate = cisdate;
    }

    public Date getClisdate() {
        return clisdate;
    }

    public void setClisdate(Date clisdate) {
        this.clisdate = clisdate;
    }

    //车辆类型
    @ApiModelProperty(name = "isr_company", notes = "保险公司", dataType = "String", required = true)
    @NotNull(message = "保险公司不能为空")
    private String isr_company;
    //载重
    @ApiModelProperty(name = "cipnum", notes = "商业险保单号", dataType = "Integer", required = true)
    @NotNull(message = "商业险保单号不能为空")
    private Integer cipnum;
    //发动机号
    @ApiModelProperty(name = "clipnum", notes = "交强险保单号", dataType = "Integer", required = true)
    @NotNull(message = "交强险保单号不能为空")
    private Integer clipnum;
    //备注
    @ApiModelProperty(name = "cisdate", notes = "起始日期", dataType = "Date", required = true)
    @NotNull(message = "商业险起始日期不可为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date cisdate;
    //状态
    @ApiModelProperty(name = "clisdate",notes = "交强险起始日期",dataType = "Date",required = true)
    @NotNull(message = "交强险起始日期不可为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date clisdate;
}
